//
//  FPPeriodMainItem.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/1/23.
//

#import "FPPeriodMainItem.h"

@implementation FPPeriodMainItem

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    
    // 添加标签
    self.titleLabel = [[UILabel alloc] initWithFrame:self.contentView.bounds];
    self.titleLabel.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.font = BFONT(16.f);
    
    [self.contentView addSubview:self.titleLabel];
}

- (void)configureWithText:(NSString *)text {
    self.titleLabel.text = text;
}




@end
